package com.pattern.design.Chapter_9.com.devchronicles.asynchronous;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.ejb.Singleton;
import javax.ejb.Startup;

@Startup
@Singleton
public class TestLogging {
	@EJB
	MyLoggingBean logBean;

	@PostConstruct
	public void testLoggers() {
		System.out.println("call async");
		logBean.logAsync("Log Async");
		System.out.println("call sync");
		logBean.logInfo("Log Sync");
		System.out.println("finished");
	}
}